version: '3'
services:
    apps:
      container_name: apps
      ports:
        - "8080:8080"
        - "3001:3001"
      build:
        dockerfile: ./Dockerfile
        context: containers/apps
      volumes:
        - ./apps/:/var/www

    nginx:
      container_name: nginx
      image: nginx:latest
      ports:
        - "80:80"
      volumes:
        - './apps:/var/www/'
        - './containers/nginx/conf.d:/etc/nginx/conf.d'
    mysql:
      container_name: mysql
      image: mysql:8
      ports:
        - "3307:80"
        - "3306:3306"
      environment:
        - MYSQL_ROOT_PASSWORD=root
      volumes:
        - './containers/mysql:/var/lib/mysql'